function showValue(id,num){
    var result = document.getElementById(id);
    result.innerHTML = translateValue(num);
}

function translateValue(num){
    var closeness;
    switch (num) {
        case "1":
            closeness = "You barely know (or don't know) each other";
            break;
        case "2":
            closeness = "You meet occasionally";
            break;
        case "3":
            closeness = "You used to be friends";
            break;
        case "4":
            closeness = "You're friends";
            break;
        default:
            break;
    }

    return closeness;
}

function loadSubmit() {
    ProgressImage = document.getElementById('progress_image');
    document.getElementById("loading").style.visibility = "visible";
    //   setTimeout("ProgressImage.src = ProgressImage.src",100);
    return true;
}
